package tr.edu.metu.is.mega.client.course.instructor;

import tr.edu.metu.is.mega.client.resource.MEGAResourceBundle;
import tr.edu.metu.is.mega.client.resource.MEGAResources;
import tr.edu.metu.is.mega.common.dto.CourseDTO;

import com.extjs.gxt.ui.client.widget.Dialog;
import com.google.gwt.user.client.Element;

/**
 * Dialog for course student management.
 */
public class CourseStudentsManagementDialog extends Dialog {

    private MEGAResourceBundle resourceBundle;

    private final CourseDTO course;

    /**
     * Default constructor.
     * 
     * @param course course to display students
     */
    public CourseStudentsManagementDialog(CourseDTO course) {
        this.course = course;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void onRender(Element parent, int pos) {
        super.onRender(parent, pos);
        resourceBundle = MEGAResources.RESOURCEBUNDLE;
        setHeading(resourceBundle.courseStudentsManagementHeading());

    }

}
